import com.wyl.mapper.UserMapper
import com.wyl.pojo.User
import org.junit.Test
import org.springframework.beans.factory.getBean
import org.springframework.context.support.ClassPathXmlApplicationContext

class TransactionTest {
    private val context = ClassPathXmlApplicationContext("applicationContext.xml")

    @Test
    fun test() {
        val mapper = context.getBean<UserMapper>("userMapper")
        mapper.getUserList().forEach(::println)
    }

}